package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;

import java.util.List;

/**
 * @author shi
 * @version v1.0
 * @date 2019/8/7 21:01
 * @description TODO
 **/
public interface RoleSettingService {
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);


    void addRole(Role role, Integer[] permissionIds, Integer[] menuIds);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);


    void delete(Integer id);

    Role findRoleByID(Integer id);

    List<Role> findAll();

    Integer[] findMenuById(Integer id);

    Integer[] findPermissionById(Integer id);
}
